<?php
if(!empty($serviceUnitList)){
    foreach($serviceUnitList as $key => $value){?>
        <option value="<?php echo $key; ?>"><?php echo $value; ?></option><?php
    }
}else{ ?>
    <option><?php echo __('---Select---')?></option> <?php
}
?>